package tech.eyao.hs60x.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * 安全验证filter
 * @author hejian
 *
 */
public abstract class AbstractFliter implements Filter {

	@Override
	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
			throws IOException, ServletException {
		this.filter(request, response, chain);
	}
	
	/**
	 * 子类扩展实现
	 * @param request
	 * @param response
	 * @param chain
	 */
	public abstract void filter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException;
	
	
	public boolean filterNoVerifyUrl(String url,long userId) {
		return Boolean.TRUE;
	}
}
